package com.ls.mapper;

import com.ls.entity.PhoneRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通话记录表 Mapper 接口
 * </p>
 *
 * @author pengyu
 * @since 2024-10-13
 */
public interface PhoneRecordMapper extends BaseMapper<PhoneRecord> {
    // 添加排行查询方法
    List<Map<String, Object>> selectCallRank(
            @Param("customerId") Long customerId,
            @Param("start") LocalDateTime start,
            @Param("end") LocalDateTime end,
            @Param("limit") int limit
    );
}
